import ajax from '@/utils/request.js'
// export * from './login'

export function getBanner() {
    return ajax({
        url: '/mobile/index/banner',
        method: 'GET',
		hiddenLoading: true
    })
}

export function getSystemCountData(type = 1, time = 1) {
	return ajax({
		url: `/storehouse/teachingAnalysis/${type}/${time}`,
		method: 'GET'
	})
}

// 提交app身份
export function switchUserType(type = 1) {
	return ajax({
		url: `/mobile/switchUserType/${type}`,
		method: 'GET'
	})
}

// 邀请码绑定
export function inviteCode(code) {
	return ajax({
		url: `/mobile/inviteCode/${code}`,
		method: 'GET'
	})
}

